|
@@ -124,6 +124,11 @@
|
|
|
<el-form-item label="供货地点" prop="gongAdress">
|
|
|
<el-input v-model="formCreate.gongAdress"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="落款时间" prop="luokuanTime">
|
|
|
+ <template>
|
|
|
+ <span>{{ formCreate.luokuanTime }}</span>
|
|
|
+ </template>
|
|
|
+ </el-form-item>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -140,8 +145,8 @@ import htmlDocx from 'html-docx-js/dist/html-docx';
|
|
|
import moment from "moment";
|
|
|
import { fileList, addFile, updateFile } from "@/api/system/winfile";
|
|
|
import CompSearchWinner from './CompSearchWinner.vue'
|
|
|
-
|
|
|
import { checkRole } from "@/utils/permission";
|
|
|
+
|
|
|
export default {
|
|
|
name: "CompWinFile",
|
|
|
dicts: ["winflie_status"],
|
|
@@ -203,7 +208,8 @@ export default {
|
|
|
loading: false,
|
|
|
},
|
|
|
formCreate: {
|
|
|
- hName: ''
|
|
|
+ hName: '',
|
|
|
+ luokuanTime: ''
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -243,9 +249,6 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
// 表单重置
|
|
|
resetForm () {
|
|
|
this.form.bid = null
|
|
@@ -284,11 +287,13 @@ export default {
|
|
|
this.form.hName = null;
|
|
|
this.dialogSelectedWinner.visible = true;
|
|
|
},
|
|
|
- handleSelectedWinner (row) {
|
|
|
+ handleSelectedWinner(row) {
|
|
|
this.form.wid = row.wid;
|
|
|
this.form.hName = row.hName;
|
|
|
|
|
|
- this.formCreate = row
|
|
|
+ this.formCreate = row;
|
|
|
+ const uKaiTime = moment(row.uKaiTime);
|
|
|
+ this.formCreate.luokuanTime = uKaiTime.add(2, 'days').format("YYYY-MM-DD");
|
|
|
this.dialogSelectedWinner.visible = false;
|
|
|
},
|
|
|
handleUploadUpdate (fileList) {
|
|
@@ -451,7 +456,7 @@ export default {
|
|
|
供货地点<span style="text-decoration: underline;">${fileData.gongAdress}</span>。</p>`
|
|
|
content += `<p style="text-indent: 42px;line-height:38px">接到本通知后,请与<span style="text-decoration: underline;">${fileData.sUnit}</span>联系,并于30日内按照采购需求内容签订书面合同。</p>`;
|
|
|
content += `<p style="width: 100%;text-align: right">采购代理机构:黑龙江省国辰工程项目管理有限责任公司</p>`
|
|
|
- content += `<p style="width: 100%;text-align: right">${moment().format("YYYY-MM-DD")}</p></div>`
|
|
|
+ content += `<p style="width: 100%;text-align: right">${fileData.luokuanTime}</p></div>`
|
|
|
let blob = htmlDocx.asBlob(content);
|
|
|
|
|
|
saveAs(blob, `${fileData.hName}成交通知书.docx`);
|