|
|
|
@ -328,6 +328,9 @@ export default { |
|
|
|
purchaser: '', |
|
|
|
totalCost:'', |
|
|
|
purchaserName: '', |
|
|
|
cs: '', |
|
|
|
csName: '', |
|
|
|
offsetOfExpenses: '', |
|
|
|
detailList:[], |
|
|
|
}, |
|
|
|
} |
|
|
|
@ -437,6 +440,13 @@ export default { |
|
|
|
this.$triggerInputEvent(this.$refs.purchaserName); |
|
|
|
}); |
|
|
|
} |
|
|
|
if(this.tagNo === 2051) { |
|
|
|
this.dataForm.cs = val.username |
|
|
|
this.dataForm.csName = val.user_display |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$triggerInputEvent(this.$refs.csName); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
changeSum(row){ |
|
|
|
if (row.standardCost < 0 || row.standardCost == null || row.standardCost == '') { |
|
|
|
@ -555,6 +565,9 @@ export default { |
|
|
|
purchaser: '', |
|
|
|
totalCost: '', |
|
|
|
purchaserName: '', |
|
|
|
cs: '', |
|
|
|
csName: '', |
|
|
|
offsetOfExpenses: '', |
|
|
|
detailList: [], |
|
|
|
} |
|
|
|
this.visible = true |
|
|
|
@ -710,28 +723,28 @@ export default { |
|
|
|
<el-dialog width="1000px" v-drag title="刀模申请" :close-on-click-modal="false" :visible.sync="visible"> |
|
|
|
<el-form :model="dataForm" label-position="top" label-width="100px"> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="4.8"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="申请编号"> |
|
|
|
<el-input v-model="dataForm.applyNo" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4.8"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="申请总数"> |
|
|
|
<el-input v-model="dataForm.applySumQty" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4.8"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="总成本"> |
|
|
|
<el-input v-if="accessField('10601001')" v-model="dataForm.totalCost" disabled></el-input> |
|
|
|
<el-input v-if="!accessField('10601001')" v-model="valueNull" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4.8"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="申请人" required> |
|
|
|
<el-input v-model="dataForm.applyBy" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4.8"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="申请日期" required> |
|
|
|
<el-date-picker |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
@ -742,42 +755,57 @@ export default { |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4.8"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="部门" required> |
|
|
|
<dict-data-select :site="$store.state.user.site" v-model="dataForm.department" dict-type="tool_application_department"></dict-data-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4.8"> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item required> |
|
|
|
<span slot="label" style="" @click="getBaseList(2002,1)"><a herf="#">报价专员</a></span> |
|
|
|
<el-input v-model="dataForm.quoterName" ref="quoterName" placeholder="请选择人员" readonly ></el-input> |
|
|
|
<el-input v-model="dataForm.quoterName" ref="quoterName" placeholder="请选择人员" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4.8"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item required> |
|
|
|
<span slot="label" style="" @click="getBaseList(2042,2)"><a herf="#">TP</a></span> |
|
|
|
<el-input v-model="dataForm.tpName" ref="tpName" placeholder="请选择人员" readonly ></el-input> |
|
|
|
<el-input v-model="dataForm.tpName" ref="tpName" placeholder="请选择人员" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4.8"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item required> |
|
|
|
<span slot="label" style="" @click="getBaseList(2000,3)"><a herf="#">采购专员</a></span> |
|
|
|
<el-input v-model="dataForm.purchaserName" ref="purchaserName" placeholder="请选择人员" readonly ></el-input> |
|
|
|
<el-input v-model="dataForm.purchaserName" ref="purchaserName" placeholder="请选择人员" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4.8"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" style="" @click="getBaseList(2051)"><a herf="#">CS</a></span> |
|
|
|
<el-input v-model="dataForm.csName" ref="csName" placeholder="请选择人员" readonly></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label="费用抵消"> |
|
|
|
<dict-data-select v-model="dataForm.offsetOfExpenses" dict-type="tool_offset_of_expenses"></dict-data-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-checkbox v-model="jumpFlag">跳转至申请记录</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="申请原因" class="auto"> |
|
|
|
<el-input type="textarea" resize="none" :autosize="{minRows: 3, maxRows: 3}" v-model="dataForm.applyReason"/> |
|
|
|
<el-input type="textarea" resize="none" :autosize="{minRows: 3, maxRows: 3}" v-model="dataForm.applyReason"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="备注" class="auto"> |
|
|
|
<el-input type="textarea" resize="none" :autosize="{minRows: 3, maxRows: 3}" v-model="dataForm.remark"/> |
|
|
|
<el-form-item label="备注" class="auto"> |
|
|
|
<el-input type="textarea" resize="none" :autosize="{minRows: 3, maxRows: 3}" v-model="dataForm.remark"/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|