|
|
@ -34,8 +34,8 @@ |
|
|
|
<el-col :span="6"> |
|
|
|
<div class="span-sty">店铺名称</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.billTypeKey" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in billType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.shopName" placeholder="请选择" clearable filterable> |
|
|
|
<el-option v-for="item in shop_list" :key="item.sid" :label="item.name" :value="item.name"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -369,7 +369,7 @@ export default { |
|
|
|
viewTitle: '', |
|
|
|
viewState: 1, |
|
|
|
submitdisabled: false, |
|
|
|
billType_list: [], // 店铺名称 |
|
|
|
shop_list: [], // 店铺名称 |
|
|
|
warehouse_list: [], // 仓库 |
|
|
|
deliveryType_list: [], // 配送方式 |
|
|
|
province_list: [], |
|
|
@ -502,10 +502,6 @@ export default { |
|
|
|
return bcqk |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.showAdd() |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
init() { |
|
|
|
typeValues({ type: 'deliveryType' }).then((res) => { |
|
|
@ -599,8 +595,8 @@ export default { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
// this.init() |
|
|
|
this.formobj.createByName = window.sessionStorage.getItem('userName') |
|
|
|
this.init() |
|
|
|
this.formobj.createByName = window.sessionStorage.getItem('name') |
|
|
|
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
|
|
|
this.formobj.createOrgSid = window.sessionStorage.getItem('orgSid') |
|
|
|
this.formobj.useOrgSid = window.sessionStorage.getItem('orgSid') |
|
|
@ -613,6 +609,18 @@ export default { |
|
|
|
this.formobj.createTime = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) |
|
|
|
this.formobj.discountRate = '100' |
|
|
|
}, |
|
|
|
showEdit(row) { |
|
|
|
this.viewTitle = '【编辑】商品销售单' |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.init() |
|
|
|
req.fetchBySid(row.sid).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
warehouseChange(value) { |
|
|
|
const choose = this.warehouse_list.filter((item) => item.warehouseSid === value) |
|
|
|
if (choose !== null && choose.length > 0) { |
|
|
|