12/3 发票登记修改 领用单据增加loading

lh_dev_ksck
wangwei 4 months ago
parent 39dd62764f
commit afb44179d4

@ -155,100 +155,100 @@
</el-card>
</el-form>
<el-tabs type="border-card" style="margin: 15px">
<!--单据业务详情-->
<el-tab-pane>
<span slot="label">单据 {{ input.billNo }}-单据详情</span>
<el-table
v-loading="bizDetailLoading"
:data="codeDetailList"
style="width: 100%"
border
@current-change="BizDetailInv"
@selection-change="handleSelectionUdiChange"
row-key="id"
highlight-current-row
>
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="发票代码"
prop="invoiceCodes"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="物资名称"
prop="coName"
width="150"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="规格型号"
width="150"
prop="spec"
></el-table-column>
<el-table-column
label="批次号"
width="100"
prop="batchNo"
></el-table-column>
<el-table-column
label="数量"
prop="count"
width="100"
></el-table-column>
<el-table-column
label="扫码数量"
prop="reCount"
width="100"
></el-table-column>
<el-table-column
label="价格"
prop="price"
width="100"
></el-table-column>
<el-table-column
label="金额"
prop="amount"
width="100"
></el-table-column>
<el-table-column
label="生产日期"
prop="productDate"
width="100"
></el-table-column>
<el-table-column
label="失效日期"
prop="expireDate"
width="100"
></el-table-column>
<el-table-column width="100" label="计量单位" prop="measname">
</el-table-column>
<el-table-column
label="生产企业"
prop="manufacturer"
width="160"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="注册/备案号"
width="160"
prop="certCode"
show-overflow-tooltip
></el-table-column>
</el-table>
<pagination
v-show="codeTotal > 0"
:total="codeTotal"
:page.sync="codeQuery.page"
:limit.sync="codeQuery.limit"
@pagination="getCodeDetailLists"
/>
</el-tab-pane>
</el-tabs>
<!--<el-tabs type="border-card" style="margin: 15px">-->
<!-- &lt;!&ndash;单据业务详情&ndash;&gt;-->
<!-- <el-tab-pane>-->
<!-- <span slot="label">单据 {{ input.billNo }}-单据详情</span>-->
<!-- <el-table-->
<!-- v-loading="bizDetailLoading"-->
<!-- :data="codeDetailList"-->
<!-- style="width: 100%"-->
<!-- border-->
<!-- @current-change="BizDetailInv"-->
<!-- @selection-change="handleSelectionUdiChange"-->
<!-- row-key="id"-->
<!-- highlight-current-row-->
<!-- >-->
<!-- <el-table-column type="selection" width="55"></el-table-column>-->
<!-- <el-table-column label="序号" type="index"></el-table-column>-->
<!-- <el-table-column-->
<!-- label="发票代码"-->
<!-- prop="invoiceCodes"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="物资名称"-->
<!-- prop="coName"-->
<!-- width="150"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="规格型号"-->
<!-- width="150"-->
<!-- prop="spec"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="批次号"-->
<!-- width="100"-->
<!-- prop="batchNo"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="数量"-->
<!-- prop="count"-->
<!-- width="100"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="扫码数量"-->
<!-- prop="reCount"-->
<!-- width="100"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="价格"-->
<!-- prop="price"-->
<!-- width="100"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="金额"-->
<!-- prop="amount"-->
<!-- width="100"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="生产日期"-->
<!-- prop="productDate"-->
<!-- width="100"-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="失效日期"-->
<!-- prop="expireDate"-->
<!-- width="100"-->
<!-- ></el-table-column>-->
<!-- <el-table-column width="100" label="计量单位" prop="measname">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- label="生产企业"-->
<!-- prop="manufacturer"-->
<!-- width="160"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- <el-table-column-->
<!-- label="注册/备案号"-->
<!-- width="160"-->
<!-- prop="certCode"-->
<!-- show-overflow-tooltip-->
<!-- ></el-table-column>-->
<!-- </el-table>-->
<!-- <pagination-->
<!-- v-show="codeTotal > 0"-->
<!-- :total="codeTotal"-->
<!-- :page.sync="codeQuery.page"-->
<!-- :limit.sync="codeQuery.limit"-->
<!-- @pagination="getCodeDetailLists"-->
<!-- />-->
<!-- </el-tab-pane>-->
<!--</el-tabs>-->
<el-image-viewer
v-if="imgViewerVisible"
@ -308,7 +308,7 @@ export default {
return {
check: false,
idList: [],
invoiceRow: [],
// invoiceRow: [],
statusCode: null,
choiceFile: "选取文件",
fileList: [],
@ -485,10 +485,10 @@ export default {
components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer},
methods: {
onSubmit() {
if (this.invoiceRow == null || this.invoiceRow.length == 0) {
this.$message.error("请选择要登记的物资! ");
return false;
}
// if (this.invoiceRow == null || this.invoiceRow.length == 0) {
// this.$message.error("! ");
// return false;
// }
if (this.$isBlank(this.inputQuery.invoiceEncode)) {
this.$message.error("发票编码不能为空!");
return;

@ -797,11 +797,13 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="checkInvoice"
@close="closecheckInvoice"
>
<checkInvoice
:closeDialog="closecheckInvoice"
:input="inputInv"
:getOrderDetails="getOrderDetails"
:invoiceRow="detailList"
></checkInvoice>
</el-dialog>
@ -1067,6 +1069,7 @@ export default {
acceptQuery: null,
acceptOrderVisible: false,
subRow: null,
detailList:[],
};
},
components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer, InvoiceRegistrationDetermine, checkInvoice},
@ -1095,11 +1098,13 @@ export default {
this.getList();
},
InvoiceRegister1(_this,row) {
_this.savebillno = row.billNo
_this.savebillno = _this.currentRow.billNo
_this.inputInv = row;
_this.detailList.push(row)
_this.checkInvoice = true;
},
closecheckInvoice() {
this.detailList = []
this.checkInvoice = false;
this.getList();
this.currentRow.billNo = this.savebillno;

@ -203,6 +203,13 @@ export default {
//
this.noPassLoading = true
}
//
const loading = this.$loading({
lock: true,
text: '审核中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
getAudit(data).then((res => {
if (val == '3'){
this.passLoading = false
@ -210,11 +217,14 @@ export default {
this.noPassLoading = false
}
if (res.code == 20000) {
loading.close();
this.closeDialog();
} else {
loading.close();
this.$message.error(res.message);
}
}))
loading.close();
this.closeDialog()
}
},

Loading…
Cancel
Save