szh_zidingyibiaoti
张同海 2 years ago
parent 3436aab2e9
commit 3bd8a1d86d

@ -44,16 +44,20 @@
<a-card :bodyStyle="tstyle" :bordered="false"> <a-card :bodyStyle="tstyle" :bordered="false">
<div class="title"><i class="iconfont icon-fuwu"></i><span>货物状态</span></div> <div class="title"><i class="iconfont icon-fuwu"></i><span>货物状态</span></div>
<div class="content"> <div class="content">
<div <a-tooltip v-for="(serive, sindex) in booGoodsStatusItem" :key="`${serive.systemCode}_${sindex}`">
class="items" <template v-if="serive.finishTime" #title>
v-for="(serive, sindex) in booGoodsStatusItem" <p>时间{{ serive.finishTime }}</p>
:key="`${serive.systemCode}_${sindex}`" <p v-if="serive.remark">{{ serive.remark }}</p>
:class="{ active: locaGoodsStatus.includes(serive.systemCode) }" </template>
@click="saveGoodsStatus(serive)" <div
> class="items"
{{ serive.statusName }} :class="{ active: locaGoodsStatus.includes(serive.systemCode) }"
<div class="edit" @click.stop="FnOpenEdit(serive)"><a-icon type="edit" /></div> @click="saveGoodsStatus(serive)"
</div> >
{{ serive.statusName }}
<div class="edit" @click.stop="FnOpenEdit(serive)"><a-icon type="edit" /></div>
</div>
</a-tooltip>
</div> </div>
</a-card> </a-card>
<a-modal v-model="GoodsStatusVisible" width="600px" title="编辑" @ok="GoodsStatusHandleOk"> <a-modal v-model="GoodsStatusVisible" width="600px" title="编辑" @ok="GoodsStatusHandleOk">
@ -68,6 +72,11 @@
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12" v-if="GoodsStatusEditData.systemCode == 'SQXS'">
<a-form-item label="显示天数" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input placeholder="请输入显示天数" v-decorator="['extData']" />
</a-form-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> <a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input placeholder="请输入备注" v-decorator="['remark']" /> <a-input placeholder="请输入备注" v-decorator="['remark']" />
@ -621,7 +630,8 @@ export default {
let data = { let data = {
finishTime: date.toISOString(), finishTime: date.toISOString(),
remark: values.remark remark: values.remark,
extData: values.remark
} }
let AData = { ...this.GoodsStatusEditData, ...data } let AData = { ...this.GoodsStatusEditData, ...data }
@ -690,7 +700,8 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.StatusVisibleForm.setFieldsValue({ this.StatusVisibleForm.setFieldsValue({
finishTime: data.finishTime ? data.finishTime : '', finishTime: data.finishTime ? data.finishTime : '',
remark: data.remark ? data.remark : '' remark: data.remark ? data.remark : '',
extData: data.extData ? data.extData : ''
}) })
}) })
}, 100) }, 100)

Loading…
Cancel
Save