|
@@ -425,7 +425,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="fBillno"
|
|
|
+ prop="srcBillNo"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
width="140px"
|
|
@@ -433,28 +433,12 @@
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="fGoodsid"
|
|
|
+ prop="fProductName"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
width="140px"
|
|
|
label="货物名称"
|
|
|
>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-select
|
|
|
- v-model="scope.row.fGoodsid"
|
|
|
- filterable
|
|
|
- disabled
|
|
|
- remote
|
|
|
- placeholder="请选择品名"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(dict, index) in goodsOptions"
|
|
|
- :key="index.fId"
|
|
|
- :label="dict.fName"
|
|
|
- :value="dict.fId"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="fMarks"
|
|
@@ -788,6 +772,56 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
+ prop="fMblno"
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ width="130px"
|
|
|
+ label="提单号"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ v-model="scope.row.fMblno"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ placeholder="提单号"
|
|
|
+ show-word-limit
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ prop="fProductName"
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ width="140px"
|
|
|
+ label="品名"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ v-model="scope.row.fProductName"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ placeholder="品名"
|
|
|
+ show-word-limit
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ prop="fMarks"
|
|
|
+ header-align="center"
|
|
|
+ align="center"
|
|
|
+ width="130px"
|
|
|
+ label="品牌"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ v-model="scope.row.fMarks"
|
|
|
+ :disabled="browseStatus"
|
|
|
+ placeholder="品牌"
|
|
|
+ show-word-limit
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
prop="remark"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
@@ -821,12 +855,12 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="success" v-if="form.fBillstatus == '6'" @click="backrRconciliation">撤销请核</el-button>
|
|
|
+ <el-button type="success" v-if="form.fBillstatus === 6" @click="backrRconciliation">撤销请核</el-button>
|
|
|
<el-button v-if="approve === true" @click="goApproval">审批</el-button>
|
|
|
<el-button type="primary" v-if="notChange" @click="addOrUpdateHandle">查看审批流</el-button>
|
|
|
<el-button v-if="cancelButton === true" @click="cancel">取 消</el-button>
|
|
|
<el-button v-if="cancelButton === false" @click="homePage">取 消</el-button>
|
|
|
- <el-button type="danger" :disabled="disappear" v-if="form.fBillstatus == '4' && Operator == Lander" @click="backApproval">撤销审批</el-button>
|
|
|
+ <el-button type="danger" :disabled="disappear" v-if="form.fBillstatus === '4' && Operator === Lander" @click="backApproval">撤销审批</el-button>
|
|
|
<el-button type="primary" :disabled="browseStatus" @click="submitForm(2)">保 存</el-button>
|
|
|
<el-button
|
|
|
:disabled="browseStatus"
|
|
@@ -1059,13 +1093,13 @@
|
|
|
Jump(){
|
|
|
this.approval = this.$route.query.data
|
|
|
if (this.approval){
|
|
|
+ this.reset()
|
|
|
this.Xbutton = false
|
|
|
this.approval = JSON.parse(this.approval)
|
|
|
// this.hide = false
|
|
|
this.notChange = true
|
|
|
this.approve = true
|
|
|
this.cancelButton = false
|
|
|
- this.reset()
|
|
|
getStorageFeeCalculation(this.approval.billId).then(response => {
|
|
|
this.fMblnoOptions = []
|
|
|
if (response.data.corps) {
|
|
@@ -1084,14 +1118,10 @@
|
|
|
this.$set(this.dataList[li], 'fBillingDeadline', Date.parse(this.dataList[li].fBillingDeadline))
|
|
|
this.$set(this.dataList[li], 'fStorageFeeDeadline', Date.parse(this.dataList[li].fStorageFeeDeadline))
|
|
|
}
|
|
|
- console.log(this.dataList)
|
|
|
}
|
|
|
if (response.data.warehouseFeesList) {
|
|
|
this.warehouseDrList = response.data.warehouseFeesList
|
|
|
}
|
|
|
- if (response.data.goodsList) {
|
|
|
- this.goodsOptions = response.data.goodsList
|
|
|
- }
|
|
|
if (response.data.feesList) {
|
|
|
this.fWbuOptions = response.data.feesList
|
|
|
}
|
|
@@ -1136,7 +1166,6 @@
|
|
|
this.addOrUpdateVisib = false
|
|
|
let id = '448'
|
|
|
let actId = '110'
|
|
|
- console.log(this.form.fId)
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.addOrUpdate.init(this.form.fId,this.actId)
|
|
|
})
|
|
@@ -1309,7 +1338,6 @@
|
|
|
this.fWbuOptions = [];
|
|
|
this.fMblnoOptions = [];
|
|
|
this.disappear = false
|
|
|
- this.cancelButton = false
|
|
|
this.addOrUpdateVisib = false
|
|
|
this.addOrUpdateVisible = false
|
|
|
this.notChange = false
|
|
@@ -1336,8 +1364,8 @@
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd(status) {
|
|
|
- this.browseStatus = status;
|
|
|
this.reset();
|
|
|
+ this.browseStatus = status;
|
|
|
this.queryUser();
|
|
|
this.open = true;
|
|
|
this.dataList = [];
|
|
@@ -1347,13 +1375,11 @@
|
|
|
this.title = "出库单";
|
|
|
},
|
|
|
handleUpdate_s(row, status) {
|
|
|
- this.disappear = true
|
|
|
+ this.reset();
|
|
|
this.notChange = true
|
|
|
this.browseStatus = status;
|
|
|
- this.reset();
|
|
|
let data = row || this.ids;
|
|
|
getStorageFeeCalculation(data.fId).then((response) => {
|
|
|
-
|
|
|
this.fMblnoOptions = []
|
|
|
if (response.data.corps) {
|
|
|
this.fMblnoOptions.push(response.data.corps)
|
|
@@ -1372,35 +1398,27 @@
|
|
|
this.$set(this.dataList[li], 'fBillingDeadline', Date.parse(this.dataList[li].fBillingDeadline))
|
|
|
this.$set(this.dataList[li], 'fStorageFeeDeadline', Date.parse(this.dataList[li].fStorageFeeDeadline))
|
|
|
}
|
|
|
- console.log(this.dataList)
|
|
|
}
|
|
|
if (response.data.warehouseFeesList) {
|
|
|
this.warehouseDrList = response.data.warehouseFeesList
|
|
|
}
|
|
|
- if (response.data.goodsList) {
|
|
|
- this.goodsOptions = response.data.goodsList
|
|
|
- }
|
|
|
if (response.data.feesList) {
|
|
|
this.fWbuOptions = response.data.feesList
|
|
|
}
|
|
|
this.userOptions = response.data.sysUser;
|
|
|
this.open = true;
|
|
|
this.title = "编辑仓储费计算";
|
|
|
- console.log(this.Operator)
|
|
|
- console.log(this.Lander)
|
|
|
});
|
|
|
|
|
|
},
|
|
|
-
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row, status) {
|
|
|
+ this.reset();
|
|
|
this.disappear = false
|
|
|
this.notChange = true
|
|
|
this.browseStatus = status;
|
|
|
- this.reset();
|
|
|
let data = row || this.ids;
|
|
|
getStorageFeeCalculation(data.fId).then((response) => {
|
|
|
-
|
|
|
this.fMblnoOptions = []
|
|
|
if (response.data.corps) {
|
|
|
this.fMblnoOptions.push(response.data.corps)
|
|
@@ -1419,22 +1437,16 @@
|
|
|
this.$set(this.dataList[li], 'fBillingDeadline', Date.parse(this.dataList[li].fBillingDeadline))
|
|
|
this.$set(this.dataList[li], 'fStorageFeeDeadline', Date.parse(this.dataList[li].fStorageFeeDeadline))
|
|
|
}
|
|
|
- console.log(this.dataList)
|
|
|
}
|
|
|
if (response.data.warehouseFeesList) {
|
|
|
this.warehouseDrList = response.data.warehouseFeesList
|
|
|
}
|
|
|
- if (response.data.goodsList) {
|
|
|
- this.goodsOptions = response.data.goodsList
|
|
|
- }
|
|
|
if (response.data.feesList) {
|
|
|
this.fWbuOptions = response.data.feesList
|
|
|
}
|
|
|
this.userOptions = response.data.sysUser;
|
|
|
this.open = true;
|
|
|
this.title = "编辑仓储费计算";
|
|
|
- console.log(this.Operator)
|
|
|
- console.log(this.Lander)
|
|
|
});
|
|
|
|
|
|
},
|
|
@@ -1633,10 +1645,14 @@
|
|
|
formData.append("warehouseFees", JSON.stringify(this.warehouseDrList));
|
|
|
addStorageFeeCalculation(formData).then((response) => {
|
|
|
this.msgSuccess("操作成功");
|
|
|
- if (status === 2) {
|
|
|
+ if (status !== 2) {
|
|
|
this.open = false;
|
|
|
this.reset()
|
|
|
this.getList();
|
|
|
+ } else {
|
|
|
+ this.form = response.data
|
|
|
+ this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
|
|
|
+ this.$set(this.form, 'fBillingDeadline', Date.parse(this.form.fBillingDeadline))
|
|
|
}
|
|
|
})
|
|
|
}
|