|
@@ -32,9 +32,22 @@
|
|
|
:data="form.shipItemsList" :key="key" @row-save="rowSave" @row-update="rowUpdate"
|
|
|
@resetColumn="resetColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 274.1)"
|
|
|
@saveColumn="saveColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 274.1)">
|
|
|
+
|
|
|
+ <!--<template slot-scope="{ row }" slot="dot">-->
|
|
|
+ <!-- <el-select v-model="row.dot" placeholder="请选择">-->
|
|
|
+ <!-- <el-option-->
|
|
|
+ <!-- v-for="item in options"-->
|
|
|
+ <!-- :key="item.value"-->
|
|
|
+ <!-- :label="item.label"-->
|
|
|
+ <!-- :value="item.value">-->
|
|
|
+ <!-- </el-option>-->
|
|
|
+ <!-- </el-select>-->
|
|
|
+ <!--</template>-->
|
|
|
+
|
|
|
<template slot-scope="{type,size,row,index,disabled}" slot="menu">
|
|
|
<el-button :size="size" :disabled="disabled || isEdit" :type="type"
|
|
|
- :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="rowEdit(row, index)">编辑
|
|
|
+ :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="rowEdit(row, index)">
|
|
|
+ {{row.$cellEdit?'保存':'编辑'}}
|
|
|
</el-button>
|
|
|
<el-button icon="el-icon-delete" :size="size"
|
|
|
:disabled="disabled || form.statusName == '已入库' || isEdit || isEdits" :type="type"
|
|
@@ -296,7 +309,7 @@ export default {
|
|
|
editBtn: false,
|
|
|
delBtn: false,
|
|
|
border: true,
|
|
|
- menuWidth: 120,
|
|
|
+ menuWidth: 160,
|
|
|
stripe: true,
|
|
|
span: 8,
|
|
|
index: true,
|
|
@@ -305,6 +318,10 @@ export default {
|
|
|
disabled: false,
|
|
|
dialogWidth: "80%",
|
|
|
showSummary: true,
|
|
|
+
|
|
|
+ saveBtn:false, // 表格弹窗保存按钮
|
|
|
+ cancelBtn:false, // 行内查看取消按钮
|
|
|
+ cellBtn:true, // 行编辑
|
|
|
sumColumnList: [
|
|
|
{
|
|
|
name: 'sendNum',
|
|
@@ -351,6 +368,8 @@ export default {
|
|
|
{
|
|
|
label: "实际数量",
|
|
|
prop: "sendNum",
|
|
|
+ width:100,
|
|
|
+ cell: true,
|
|
|
disabled: false,
|
|
|
overHidden: true,
|
|
|
rules: [{
|
|
@@ -370,6 +389,8 @@ export default {
|
|
|
}]
|
|
|
}, {
|
|
|
label: "批次号",
|
|
|
+ cell:true,
|
|
|
+ width:120,
|
|
|
prop: "dot",
|
|
|
type: "select",
|
|
|
disabled: false,
|
|
@@ -436,7 +457,9 @@ export default {
|
|
|
ovrHidden: true,
|
|
|
}, {
|
|
|
label: "备注",
|
|
|
+ cell:true,
|
|
|
prop: "remarks",
|
|
|
+ width:150,
|
|
|
span: 16,
|
|
|
disabled: false,
|
|
|
overHidde: true
|
|
@@ -818,6 +841,9 @@ export default {
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
this.form.customerName = this.form.$customerId
|
|
|
+ this.form.shipItemsList.map(item=>{
|
|
|
+ item.$cellEdit = false
|
|
|
+ })
|
|
|
submit({
|
|
|
...this.form,
|
|
|
bizTypeName: "SHGD",
|
|
@@ -841,6 +867,8 @@ export default {
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
})
|
|
|
+ console.log(id,847)
|
|
|
+ console.log(this.detailData.id,848)
|
|
|
if (!this.detailData.id) {
|
|
|
getDetails({ id: id }).then(res => {
|
|
|
this.form = res.data.data
|
|
@@ -858,21 +886,24 @@ export default {
|
|
|
loading.close();
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
//编辑
|
|
|
rowEdit(row, index) {
|
|
|
- console.log(row, index);
|
|
|
- this.confirmEditing()
|
|
|
+ console.log(row, index,887);
|
|
|
+ if (row.$cellEdit) {
|
|
|
+ this.$set(row,'$cellEdit',false)
|
|
|
+ }else {
|
|
|
+ this.$set(row,'$cellEdit',true)
|
|
|
+ }
|
|
|
+ // this.confirmEditing()
|
|
|
dotList({
|
|
|
storageId: this.form.storageId,
|
|
|
goodsId: row.goodsId
|
|
|
}).then(res => {
|
|
|
- console.log('789');
|
|
|
this.findObject(this.optionContactsBack.column, "dot").dicData = res.data.data
|
|
|
+ // console.log(this.dicData)
|
|
|
})
|
|
|
- this.$refs.formContacts.rowEdit(row, index)
|
|
|
+ // this.$refs.formContacts.rowEdit(row, index)
|
|
|
},
|
|
|
rowDelBox(row, index) {
|
|
|
this.$confirm("确定将选择数据删除?", {
|
|
@@ -896,6 +927,7 @@ export default {
|
|
|
console.log(form)
|
|
|
done(form)
|
|
|
},
|
|
|
+ // 更新数据后确定触发该事件
|
|
|
rowUpdate(form, index, done, loading) {
|
|
|
console.log(form)
|
|
|
done(form);
|